<script setup lang="ts">
import { useRoute } from 'vue-router'
import WeCaht from './components/wechat.vue'
import IdleFish from './components/xianyu.vue'

const route = useRoute()
const activeKey = ref<string>('1')
const RobatListLength = (len: any) => {
  if (len <= 0) {
    activeKey.value = '2'
  }
}
</script>

<template>
  <page-container :title="route.meta.title">
    <a-card style="overflow-x: scroll">
      <a-tabs v-model:activeKey="activeKey">
        <a-tab-pane key="1" tab="闲鱼" force-render>
          <IdleFish></IdleFish>
        </a-tab-pane>
        <a-tab-pane key="2" tab="微信">
          <WeCaht ></WeCaht>
        </a-tab-pane>
      </a-tabs>
    </a-card>
  </page-container>
</template>
